package com.orion.app.domain.entity;

import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.classpath.operations.jsr303.RooUploadedFile;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJpaEntity(sequenceName = "emp_cnt_det_seq")
public class EmployeeContactDetail {

    @NotNull
    @ManyToOne
    private EmployeeDetails employee;

    @Size(max = 200)
    private String currentAddress;

    @Size(max = 200)
    private String currentCity;

    @Size(max = 200)
    private String currentState;

    @Size(max = 200)
    private String pincode;

    @NotNull
    @ManyToOne
    private PanStatus panStatus;

    @Size(max = 10)
    private String panNumber;

    @Size(max = 50)
    private String homeNumber;

    @Size(max = 50)
    private String officeNumber;

    @Size(max = 50)
    private String officeExtension;

    @Size(max = 50)
    private String uidNumber;

    @Size(max = 50)
    private String mobileNumber;

    @Size(max = 50)
    private String emergencyLandlineNumber;

    @Size(max = 50)
    private String emergencyMobileNumber;

    @RooUploadedFile(contentType = "image/jpeg", autoUpload = true)
    @Lob
    private byte[] employeePhoto;
}
